package com.arpa.oms.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * <p>
 * OMS商品关系记录
 * </p>
 *
 * @author rfwang
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="OmsGoodsRelationRecord对象", description="OMS商品关系记录")
public class OmsGoodsRelationRecord extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品关系单号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "收货人标识")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "收货人名称")
    @TableField("shipment_name")
    private String shipmentName;

    @ApiModelProperty(value = "平台标识")
    @TableField("platform_code")
    private String platformCode;

    @ApiModelProperty(value = "平台名称")
    @TableField("platform_name")
    private String platformName;

    @ApiModelProperty(value = "店铺标识")
    @TableField("shop_code")
    private String shopCode;

    @ApiModelProperty(value = "店铺名称")
    @TableField("shop_name")
    private String shopName;

    @ApiModelProperty(value = "商品标识",required = true)
    @NotEmpty(message = "商品标识不能为空")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码",required = true)
    @NotEmpty(message = "商品编码不能为空")
    @TableField("good_code")
    private String goodCode;

    @ApiModelProperty(value = "商品名称",required = true)
    @NotEmpty(message = "商品名称不能为空")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "外部商品编码")
    @TableField("outer_goods_code")
    private String outerGoodsCode;

    @ApiModelProperty(value = "外部商品名称")
    @TableField("outer_goods_name")
    private String outerGoodsName;


}
